<div class="toolbar">
    <h1 id="pageTitle"><%=h @title %></h1>
    <%=link_to "List", ppts_path, :id=>"backButton",
        :class=>"button"%>
    <%= link_to_remote "Stop",
                      :method => 'get',
                      :url => stop_ppt_url(:id=>params[:id]),
                      :success => "toggleRun()",
                      :type => :synchronous,
                      :html => {:id => 'stopButton', :class => "button", :style=>"display:none"}%>
</div>
<div id="control_panel">
  <%= link_to_remote "",
                      :method => 'get',
                      :url => run_ppt_url(:id=>params[:id]),
                      :success => "toggleRun()",
                      :type => :synchronous,
                      :html => {:id => 'run_link'}%>
  <div id="touch_area" style="display:none"/>
</div>

<% javascript_tag do %>
    <%= "toggleRun()" if @running%>
    initTouch();
    var nex_url = "<%=nex_ppt_url(:id=>params[:id])%>"
    var pre_url = "<%=pre_ppt_url(:id=>params[:id])%>"
<%end%>